package com.example.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.sql.Timestamp;

@Data
public class Message {
    // 消息ID
    private Integer mid;

    // 消息内容
    private String content;

    // 发送者ID
    private Integer sender;

    // 接收者ID
    private Integer receiver;

    // 消息标题
    private String title;

    // 消息类型
    private String type;

    // 创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createdDate;

    // 是否已读
    private String isRead;
}
